const jwt = require("jsonwebtoken")

const SECRET = "usdfinrtuerkgvdieserufwoqser"

module.exports = function createToken(id) {
  const token_key = jwt.sign({ id }, SECRET, { expiresIn: "7 days" })
  return token_key
}
